package com.inno.thread.hello;

public class HelloThread implements Runnable {


    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + "执行");
    }

    public static void main(String[] args) {
        HelloThread helloThread = new HelloThread();
        Thread t1 = new Thread(helloThread, "线程1");
        Thread t2 = new Thread(helloThread, "线程2");

        t1.start();
        t2.start();
    }
}
